package com.ecoolex.ying.space.core.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.ying.space.core.mapper.UserWorksCommentMapper;
import com.ecoolex.ying.space.entity.UserWorksComment;

public interface UserWorksCommentDAO extends UserWorksCommentMapper {
	
	long countByOpus(@Param("title") String title);
	
	List<UserWorksComment> queryByOpus(@Param("title") String title , @Param("sorts") String sorts , @Param("page") Page page);
	
	long countByInspiration(@Param("title") String title);
	
	List<UserWorksComment> queryByInspiration(@Param("title") String title , @Param("sorts") String sorts , @Param("page") Page page);
	
	int praseComment(@Param("commentId") Integer commentId,@Param("updateUser") String updateUser);
	
	void cancelPraseComment(@Param("commentId") Integer commentId,@Param("updateUser") String updateUser);
	
	void commentCount(@Param("commentId") Integer commentId,@Param("updateUser") String updateUser);
}